﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SeaBattleWAForm
{
    public partial class UserControl1 : UserControl
    {
        public UserControl1()
        {
            InitializeComponent();
        }

        private void UserControl1_Load(object sender, EventArgs e)
        {

        }
        protected override void OnPaint(PaintEventArgs e)
        {
            
            base.OnPaint(e);
            e.Graphics.DrawLine(new Pen(Color.Black), new Point(0, 0), new Point(300, 0));
            e.Graphics.DrawLine(new Pen(Color.Black), new Point(0, 30), new Point(300, 30));
            e.Graphics.DrawLine(new Pen(Color.Black), new Point(0, 60), new Point(300, 60));
            e.Graphics.DrawLine(new Pen(Color.Black), new Point(0, 90), new Point(300, 90));
            e.Graphics.DrawLine(new Pen(Color.Black), new Point(0, 120), new Point(300, 120));
            e.Graphics.DrawLine(new Pen(Color.Black), new Point(0, 150), new Point(300, 150));
            e.Graphics.DrawLine(new Pen(Color.Black), new Point(0, 180), new Point(300, 180));
            e.Graphics.DrawLine(new Pen(Color.Black), new Point(0, 210), new Point(300, 210));
            e.Graphics.DrawLine(new Pen(Color.Black), new Point(0, 240), new Point(300, 240));
            e.Graphics.DrawLine(new Pen(Color.Black), new Point(0, 270), new Point(300, 270));
            e.Graphics.DrawLine(new Pen(Color.Black), new Point(0, 299), new Point(300, 299));

            e.Graphics.DrawLine(new Pen(Color.Black), new Point(0, 0), new Point(0, 300));
            e.Graphics.DrawLine(new Pen(Color.Black), new Point(30, 0), new Point(30, 300));
            e.Graphics.DrawLine(new Pen(Color.Black), new Point(60, 0), new Point(60, 300));
            e.Graphics.DrawLine(new Pen(Color.Black), new Point(90, 0), new Point(90, 300));
            e.Graphics.DrawLine(new Pen(Color.Black), new Point(120, 0), new Point(120, 300));
            e.Graphics.DrawLine(new Pen(Color.Black), new Point(150, 0), new Point(150, 300));
            e.Graphics.DrawLine(new Pen(Color.Black), new Point(180, 0), new Point(180, 300));
            e.Graphics.DrawLine(new Pen(Color.Black), new Point(210, 0), new Point(210, 300));
            e.Graphics.DrawLine(new Pen(Color.Black), new Point(240, 0), new Point(240, 300));
            e.Graphics.DrawLine(new Pen(Color.Black), new Point(270, 0), new Point(270, 300));
            e.Graphics.DrawLine(new Pen(Color.Black), new Point(298, 0), new Point(298, 300));
        }
    }
}
